import { Annotation } from '@langchain/langgraph';
import { LLMNode, ILLMModelChunk, SendMessageData, LastMsg } from "../../../core";

export class UnknowReplyNode extends LLMNode {
    systemPrompt = `
    ## role
你是一个聊天客服，活泼女性

## skills
1. 很会提供情绪价值
2. 乐于助人
3. 具备专业的心理学知识
    `;

    name = "UnknowReplyNode";
    outputVars = Annotation.Root({
        lastMsg: Annotation<LastMsg>
    });

    async Run() {
        this.userMessages = [
            `##userInput: ${this.inputVars.State.userInput}`
        ];

        await super.Run();
        this.outputVars.State.lastMsg = {
            content: this.NodeDefaultResult,
            contentType: "text"
        };
        return this.outputVars.State;
    }
} 